package com.kede.api.except;

import com.kede.api.ienum.KedeExceptionEnum;

/**
 * 全局异常类
 * @Author 乔包包
 * @PackageName server-parent-master
 * @Package com.kede.api.except
 * @Date 2024/2/3 11:28
 * @Version 1.0
 */
public class KedeException extends RuntimeException{
    private KedeExceptionEnum kedeExceptionEnum;
    public KedeException(KedeExceptionEnum kedeExceptionEnum){
        super(kedeExceptionEnum.getMsg());
        this.kedeExceptionEnum = kedeExceptionEnum;
    }

    public KedeExceptionEnum getErr(){
        return this.kedeExceptionEnum;
    }
}
